class_name UpgradePanel
extends Panel

@export var upgrade_list: Array[ItemUpgrade]

@onready var item_container: HBoxContainer = %ItemContainer

	
func load_upgrades(current_wave: int) -> void:
	var selected_items := Global.select_items_for_offer(upgrade_list, current_wave, Global.UPGRADE_PROBABILITY_CONFIG)
	for i in range(selected_items.size()):
		item_container.get_child(i).item_data = selected_items[i]
